using System;

namespace MessageBoardControl
{
	/// <summary>
	/// Summary description for Emotions.
	/// </summary>
	public class Emotions
	{
		public Emotions()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public static string PutEmotions(string post, string url)
		{
			string str = post;

			str = str.Replace("\r", "\r<br>");

			str = str.Replace(":'(","<img src="+url+@"\icon11.gif border=0>"); //cry

			str = str.Replace("(Y)","<img src="+url+@"\icon12.gif border=0>"); // yes
			str = str.Replace("(y)","<img src="+url+@"\icon12.gif border=0>"); // yes

			str = str.Replace("(N)","<img src="+url+@"\icon13.gif border=0>"); // no
			str = str.Replace("(n)","<img src="+url+@"\icon13.gif border=0>"); // no

			str = str.Replace("(^)","<img src="+url+@"\icon14.gif border=0>"); // Birthday cake

			str = str.Replace(":)","<img src="+url+@"\icon7.gif border=0>"); //Smill
			str = str.Replace(":-)","<img src="+url+@"\icon7.gif border=0>"); //Smill

			str = str.Replace("(I)","<img src="+url+@"\icon21.gif border=0>"); // Idea
			str = str.Replace("(i)","<img src="+url+@"\icon21.gif border=0>"); // Idea

			str = str.Replace(":d","<img src="+url+@"\icon10.gif border=0>"); //Big Smill
			str = str.Replace(":D","<img src="+url+@"\icon10.gif border=0>"); //Big Smil

			str = str.Replace("8o|","<img src="+url+@"\icon45.gif border=0>");
			str = str.Replace("8-)","<img src="+url+@"\icon44.gif border=0>"); 
			str = str.Replace("^o)","<img src="+url+@"\icon43.gif border=0>");
			str = str.Replace("(6)","<img src="+url+@"\icon31.gif border=0>"); 
			str = str.Replace(":$","<img src="+url+@"\icon15.gif border=0>");
			str = str.Replace("(8)","<img src="+url+@"\icon18.gif border=0>"); 

			str = str.Replace("(H)","<img src="+url+@"\icon6.gif border=0>");
			str = str.Replace("(h)","<img src="+url+@"\icon6.gif border=0>"); 

			str = str.Replace("(f)","<img src="+url+@"\icon41.gif border=0>");
			str = str.Replace("(F)","<img src="+url+@"\icon41.gif border=0>"); 

			str = str.Replace("(g)","<img src="+url+@"\icon40.gif border=0>");
			str = str.Replace("(G)","<img src="+url+@"\icon40.gif border=0>"); 

			str = str.Replace("(o)","<img src="+url+@"\icon16.gif border=0>");
			str = str.Replace("(O)","<img src="+url+@"\icon16.gif border=0>"); 

		
			str = str.Replace(":p","<img src="+url+@"\icon2.gif border=0>"); 
			str = str.Replace(":P","<img src="+url+@"\icon2.gif border=0>");

			str = str.Replace(":-O","<img src="+url+@"\icon1.gif border=0>"); 
			str = str.Replace(":-o","<img src="+url+@"\icon1.gif border=0>");

			str = str.Replace(":O","<img src="+url+@"\icon16.gif border=0>"); 
			str = str.Replace(":o","<img src="+url+@"\icon16.gif border=0>");

			str = str.Replace(";-)","<img src="+url+@"\icon3.gif border=0>"); 
			str = str.Replace(";)","<img src="+url+@"\icon3.gif border=0>"); 

			str = str.Replace(":(","<img src="+url+@"\icon9.gif border=0>"); 
			str = str.Replace(":-(","<img src="+url+@"\icon9.gif border=0>"); 

			str = str.Replace(":s","<img src="+url+@"\icon4.gif border=0>"); 
			str = str.Replace(":S","<img src="+url+@"\icon4.gif border=0>"); 

			str = str.Replace(":|","<img src="+url+@"\icon5.gif border=0>"); 

			str = str.Replace(":@","<img src="+url+@"\icon9.gif border=0>"); 


			return str;
		}

	}
}
